package org.foj.event {

import flash.events.Event;

public class UIEvent extends Event {

  public static var SELECTED_ISSUE_CHANGED:String =
      "selectedIssueChanged";
  public static var REFRESH_ISSUES_BUTTON_CLICKED:String =
      "refreshButtonClicked";
  public static var REMOVE_ISSUE_BUTTON_CLICKED:String =
      "removeButtonClicked";
  public static var SAVE_ISSUE_BUTTON_CLICKED:String =
      "saveIssue";
  public static var SELECTED_ISSUE_SAVED:String =
      "selectedIssueSaved";
  public static var CANCELLED_ISSUE_EDIT:String =
      "cancelledIssueEdit";

  public static var SELECTED_COMMENT_CHANGED:String =
      "selectedCommentChanged";
  public static var ADD_NEW_COMMENT_BUTTON_PRESSED:String =
      "addNewComment";
  public static var EDIT_COMMENT_BUTTON_PRESSED:String =
      "editComment";
  public static var DELETE_COMMENT_BUTTON_PRESSED:String =
      "deleteComment";

  public static var SAVE_COMMENT_BUTTON_PRESSED:String =
      "saveComment";
  public static var CANCEL_EDIT_COMMENT_BUTTON_PRESSED:String =
      "cancelEditComment";
  public static var COMMENTS_UPDATED:String =
      "commentsUpdated";

  public static var REFRESH_DATA_BUTTON_CLICKED:String =
      "refreshData";

  public static const REFRESH_GRAPHS:String = "refreshGraphs";

  public var data : *;

  public function UIEvent(type : String,
                          bubbles : Boolean = true,
                          cancelable : Boolean = false)
  {
    super(type, bubbles, cancelable);
  }


}
}
